Skip to content

Do not reuse a consul lock#4353

Merged
demmer merged 3 commits intovitessio:masterfrom
tinyspeck:fix-for-consul-master-election
Dec 8, 2018
Merged

Do not reuse a consul lock#4353
demmer merged 3 commits intovitessio:masterfrom
tinyspeck:fix-for-consul-master-election

Conversation

@rafael
Copy link
Copy Markdown
Member

@rafael rafael commented Nov 8, 2018

  • When you lose a consul lock, you can't reuse that lock. Existent code does not
    does that and if a vtctld master loses a lock, it gets stuck in a state
    where it can't never recover and you'll need to restart the process.

Signed-off-by: Rafael Chacon rafael@slack-corp.com

* When you lose a consul lock, you can't reuse that lock. Existent code does not
  does that and should a vtctld master lose a lock, it gets stuck in a state
  where it can't never use that lock again and you will need to restart the
  process.

Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
@rafael rafael requested a review from demmer November 8, 2018 17:00
@rafael rafael changed the title Do not reuse a consul lock WIP: Do not reuse a consul lock Nov 9, 2018
@rafael
Copy link
Copy Markdown
Member Author

rafael commented Nov 9, 2018

This is not ready for review yet. Still need to understand some more details about consul client API.

Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
@rafael rafael requested a review from sougou as a code owner December 7, 2018 22:54
@rafael rafael changed the title WIP: Do not reuse a consul lock Do not reuse a consul lock Dec 7, 2018
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants